// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.enums;

/**
 * GPS类型枚举
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2023-02-14
 */
public enum ButlerGpsTypeEnum {
    ALL(0, "全部"),
    GROUP_ONE(1, "工程丰控队"),
    GROUP_TWO(2, "一研九鼎队"),
    GROUP_THREE(3, "飞跃队"),
    GROUP_FOUR(4, "热水代研队"),
    GROUP_FIVE(5, "燃情无限队"),
    GROUP_SIX(6, "实制名归队");

    private int value;

    private String name;

    ButlerGpsTypeEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static String getNameByValue(int value) {
        ButlerGpsTypeEnum arrObj[] = ButlerGpsTypeEnum.values();
        for (ButlerGpsTypeEnum obj : arrObj) {
            if (value == obj.getValue()) {
                return obj.getName();
            }
        }
        return " ";
    }
}
